import $http from "../assets/js/http";
// 人员信息查询
export async function check_in_people_select({ RY_name, RY_idcardnum, limit }) {
  return $http.post("Register/Register/check_in_people_select", {
    RY_name,
    RY_idcardnum,
    limit
  });
}

// 领用物品查询
export async function receiving_items_select({
  AR_number,
  SSL_number,
  RE_number,
  RE_name,
  limit
}) {
  return $http.post("Fixedassets/Fixedassets/receiving_items_select", {
    AR_number,
    SSL_number,
    RE_number,
    RE_name,
    limit
  });
}

// 空床位查询
export async function check_condition_bed_table({
  AR_number,
  SSL_number,
  SS_floor,
  SS_number
}) {
  return $http.post("Register/Register/check_condition_bed_table", {
    AR_number,
    SSL_number,
    SS_floor,
    SS_number
  });
}

// 空房间查询
export async function check_condition_number({
  AR_number,
  SSL_number,
  SS_floor
}) {
  return $http.post("Register/Register/check_condition_number", {
    AR_number,
    SSL_number,
    SS_floor
  });
}

// 提交入住
export async function check_in_admin({
  RY_name,
  RY_idcardnum,
  live_date,
  AR_number,
  SSL_number,
  SS_floor,
  SS_number,
  RY_bed,
  RY_remarks
}) {
  return $http.post("Register/Register/check_in_admin", {
    RY_name,
    RY_idcardnum,
    live_date,
    AR_number,
    SSL_number,
    SS_floor,
    SS_number,
    RY_bed,
    RY_remarks
  });
}
